<template>
  <div class="comment">
    <div class="comment_title">
      <h4>
        <span>热门评价</span>
        <span>(105707条)</span>
      </h4>
    </div>
    <ul>
      <li v-for="item in evalLists" :key="item.id">
        <div class="comment_img fl">
          <img
            src="https://gw.alicdn.com/tps/i3/TB1yeWeIFXXXXX5XFXXuAZJYXXX-210-210.png_100x100.jpg"
            alt
          />
        </div>
        <div class="comment_cnt">
          <div class="comment_cnt_man">
            <span class="comment_uname">{{item.nickName}}</span>
            <span class="star">
              <img src="../../assets/images/star.svg" alt />
            </span>
            <span class="fr">12-05 16.07</span>
          </div>
          <div class>
            <p>{{item.content}}</p>
          </div>
        </div>
      </li>
    </ul>
    <p class="no-more">没有更多了～</p>
  </div>
</template>

<script>
export default {
  props: {
    evalLists: {
      type: Array,
      default: () => []
    }
  }
};
</script>

<style>
.comment {
  padding-left: 15px;
  padding-top: 15px;
  box-sizing: border-box;
  border-top: 1px solid #d9d9d9;
}
.comment .comment_title {
  margin-bottom: 20px;
}
.comment .comment_title h4 span:nth-child(1) {
  font-weight: bold;
}
.comment .comment_title h4 span:nth-child(2) {
  color: #9c9c9c;
}
.comment li {
  margin-top: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #d9d9d9;
}
.comment_img {
  width: 25px;
  height: 25px;
  overflow: hidden;
  border-radius: 100%;
}
.comment_img img {
  height: 100%;
  width: 100%;
}
.comment_cnt {
  margin-left: 35px;
  padding-right: 10px;
}
.comment_cnt p {
  margin-top: 10px;
  font-size: 12px;
}
.comment_cnt_man span:nth-child(1) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
  font-weight: bold;
}
.comment_cnt_man span:nth-child(3) {
  color: #666;
  font-size: 12px;
}
.comment_uname {
  display: inline-block;
  max-width: 60px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
  font-weight: bold;
  vertical-align: middle;
}
.comment_cnt .star img {
  width: 50px;
}
.no-more {
	text-align: center;
	padding: 15px 0 10px;
	font-size: 14px;
	color: #666;
}
</style>
